package jinyilw.swing.rlaf.ui;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.LookAndFeel;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicPanelUI;
import java.awt.Graphics;

/**
 * @author Jinyi
 */
public class RPanelUI extends BasicPanelUI
{
	private static RPanelUI rPanelUI;

	public static ComponentUI createUI(JComponent c)
	{
		if (rPanelUI == null)
			rPanelUI = new RPanelUI();
		return rPanelUI;
	}

	@Override
	protected void installDefaults(JPanel p)
	{
		LookAndFeel.installProperty(p, "opaque", Boolean.FALSE);
	}

	@Override
	public void update(Graphics g, JComponent c)
	{
	}
}
